package be.jhd.appserver.weblogic;

import weblogic.deploy.api.tools.deployer.Deployer;
import be.jhd.appserver.weblogic.command.WeblogicConfig;
import be.jhd.appserver.weblogic.deployer.command.DeployerCommand;

public class DeployerCommandSender extends AbstractCommandSender<DeployerCommand>{

	public DeployerCommandSender(WeblogicConfig config){
		super(config);
	}
	
	@Override
	protected void executeCommand(DeployerCommand command) throws Exception {
		final Deployer d = new Deployer(command.getParameters(getConfig()));
		d.run();
	}
}
